package edu.xlh.travel.websocket.service.impl;

import edu.xlh.travel.websocket.dao.GroupInfoDao;
import edu.xlh.travel.websocket.domin.GroupInfo;
import edu.xlh.travel.websocket.service.GroupInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class GroupInfoServiceImpl implements GroupInfoService {
    @Autowired
    private GroupInfoDao groupInfoDao;
    @Override
    public GroupInfo findByGroupId(String groupId) {
        return groupInfoDao.findById(groupId).get();
    }
}
